package com.ruoyi.communal.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.communal.mapper.MessageReminderMapper;
import com.ruoyi.communal.domain.MessageReminder;
import com.ruoyi.communal.service.IMessageReminderService;

/**
 * 消息提醒Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-17
 */
@Service
public class MessageReminderServiceImpl implements IMessageReminderService 
{
    @Autowired
    private MessageReminderMapper messageReminderMapper;

    /**
     * 查询消息提醒
     * 
     * @param id 消息提醒主键
     * @return 消息提醒
     */
    @Override
    public MessageReminder selectMessageReminderById(Long id)
    {
        return messageReminderMapper.selectMessageReminderById(id);
    }

    /**
     * 查询消息提醒列表
     * 
     * @param messageReminder 消息提醒
     * @return 消息提醒
     */
    @Override
    public List<MessageReminder> selectMessageReminderList(MessageReminder messageReminder)
    {
        return messageReminderMapper.selectMessageReminderList(messageReminder);
    }

    /**
     * 新增消息提醒
     * 
     * @param messageReminder 消息提醒
     * @return 结果
     */
    @Override
    public int insertMessageReminder(MessageReminder messageReminder)
    {
        return messageReminderMapper.insertMessageReminder(messageReminder);
    }

    /**
     * 修改消息提醒
     * 
     * @param messageReminder 消息提醒
     * @return 结果
     */
    @Override
    public int updateMessageReminder(MessageReminder messageReminder)
    {
        return messageReminderMapper.updateMessageReminder(messageReminder);
    }

    /**
     * 批量删除消息提醒
     * 
     * @param ids 需要删除的消息提醒主键
     * @return 结果
     */
    @Override
    public int deleteMessageReminderByIds(Long[] ids)
    {
        return messageReminderMapper.deleteMessageReminderByIds(ids);
    }

    /**
     * 删除消息提醒信息
     * 
     * @param id 消息提醒主键
     * @return 结果
     */
    @Override
    public int deleteMessageReminderById(Long id)
    {
        return messageReminderMapper.deleteMessageReminderById(id);
    }
}
